import {
    validatenull,
} from '@/util/validate';

import { mapGetters } from 'vuex';

export default params => ({
    created() {
        if (this.isWuye) {
            this.$router.replace({ path: `/wuye${this.$route.path}` });
        }
    },
    computed: {
        ...mapGetters(['isWuye']),
    },
});